<template>
    <div class="popUp">
        <div class="popUp-close" @click="close"></div>
        <div class="popUp-content">
            <div class="popUp-content-popTitle"><span>变压器设备信息</span></div>
            <div class="popUp-content-list">
                <div class="popUp-content-list-listBox" v-for="(item, i) in listData" :key="i">
                    <div style="padding: 0 10px;display: flex;align-items: center;" class="bgc">
                        <div class="popUp-content-list-circle"></div>
                        <div class="popUp-content-list-textName">{{ item.name }}</div>
                    </div>
                    <div class="popUp-content-list-textContent">{{ item.text }}</div>
                </div>
            </div>
            <div class="popUp-content-especial">
                <div style="padding: 0 10px;display: flex;align-items: center;" class="bgc">
                    <div class="popUp-content-list-circle"></div>
                    <div class="popUp-content-list-textName" style="width: 192px;">套管型电流互感器</div>
                </div>
                <div class="popUp-content-list-textContent">2号变压器</div>
            </div>
        </div>
    </div>
</template>

<script setup>
import { ref, inject } from "vue";

const close = inject('close')

const listData = ref([
    {
        name: "产品名称",
        text: "2号变压器",
    },
    {
        name: "额定电压",
        text: "200kv",
    },
    {
        name: "联接组标号",
        text: "123456",
    },
    {
        name: "绝缘条件",
        text: "绝缘条件",
    },
    {
        name: "额定容量",
        text: "220m³",
    },
    {
        name: "额定频率",
        text: "11",
    },
    {
        name: "冷却方式",
        text: "冷却方式",
    },
    {
        name: "产品规格",
        text: "产品规格",
    },
    {
        name: "额定电流",
        text: "20A",
    },
    {
        name: "分接头位置",
        text: "分接头",
    },

]);
</script>

<style lang="scss" scoped>
.popUp {
    width: 411px;
    height: 296.5px;
    background-image: url("../assets/images/home/bgc_pop.png");
    background-size: 100% 100%;
    position: absolute;
    left: 20%;
    // margin-top: 20%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;

    &-content {
        width: 232px;
        height: 152px;

        &-popTitle {
            width: 393px;
            height: 37px;
            background-image: url("../assets/images/home/bg_emphasisTit.png");
            background-size: 100% 100%;
            font-size: 20px;
            font-family: 58 WindFont-Regular, 58 WindFont;
            font-weight: 400;
            margin: 9px 0 0 15px;

            span {
                background: linear-gradient(180deg, #DFF7FF 0%, #00C0FF 100%);
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                margin-left: 53px;
            }
        }

        &-list {
            width: 368px;
            height: 170px;
            display: flex;
            justify-content: space-between;
            /* 水平两端对齐 */
            align-content: space-between;
            align-items: flex-start;
            /* 上端对齐 */
            flex-wrap: wrap;
            /* 允许换行 */
            font-size: 14px;
            font-family: Alibaba PuHuiTi 2-55 Regular, Alibaba PuHuiTi 20;
            font-weight: normal;
            margin-top: 22px;
            margin-left: 19px;

            &-listBox {
                display: flex;
                align-items: center;
                width: 172px;
                height: 26px;
                border: 1px solid rgba(186, 229, 243, 0.3);
            }

            &-circle {
                width: 4px;
                height: 4px;
                background: #000000;
                border: 1px #00C0FF solid;
                margin-right: 8px;
            }

            &-textName {
                font-size: 14px;
                font-family: Alibaba PuHuiTi 2.0, Alibaba PuHuiTi 20;
                font-weight: normal;
                color: #BAE5F3 !important;
                line-height: 16px;

            }

            &-textContent {
                font-size: 14px;
                font-family: Alibaba PuHuiTi 2.0, Alibaba PuHuiTi 20;
                font-weight: normal;
                color: #7CDFFF;
                line-height: 16px;

                margin-left: 12px;
            }
        }

        &-especial {
            width: 368px;
            height: 26px;
            display: flex;
            align-items: center;
            margin-top: 10px;
            margin-left: 19px;
            border: 1px solid rgba(186, 229, 243, 0.3);
        }
    }

    &-close {
        width: 24px;
        height: 24px;
        background-image: url("../assets/images/home/icon_close.png");
        background-size: 100% 100%;
        float: right;
    }


}

.bgc {
    //width: 100%;
    height: 100%;
    background-image: url("../assets/images/home/bgc1.png");
    background-size: 100% 100%;
}
</style>